package com.dianping.cat.home.heavy.entity;

import com.dianping.cat.home.heavy.BaseEntity;
import com.dianping.cat.home.heavy.IVisitor;








public class Service
  extends BaseEntity<Service>
{
  private String m_domain;
  private String m_name;
  private String m_logview;
  private long m_count;
  private String m_key;

  public Service() {}

  public Service(String key) { this.m_key = key; }




  public void accept(IVisitor visitor) { visitor.visitService(this); }



  public boolean equals(Object obj) {
/*  34 */     if (obj instanceof Service) {
/*  35 */       Service _o = (Service)obj;

/*  37 */       if (!equals(getKey(), _o.getKey())) {
/*  38 */         return false;
      }

/*  41 */       return true;
    }

/*  44 */     return false;
  }


/*  48 */   public long getCount() { return this.m_count; }



/*  52 */   public String getDomain() { return this.m_domain; }



/*  56 */   public String getKey() { return this.m_key; }



/*  60 */   public String getLogview() { return this.m_logview; }



/*  64 */   public String getName() { return this.m_name; }



  public int hashCode() {
/*  69 */     int hash = 0;

/*  71 */     return hash * 31 + ((this.m_key == null) ? 0 : this.m_key.hashCode());
  }




  public void mergeAttributes(Service other) {
    assertAttributeEquals(other, "service", "key", this.m_key, other.getKey());

/*  80 */     if (other.getDomain() != null) {
/*  81 */       this.m_domain = other.getDomain();
    }

/*  84 */     if (other.getName() != null) {
/*  85 */       this.m_name = other.getName();
    }

/*  88 */     if (other.getLogview() != null) {
/*  89 */       this.m_logview = other.getLogview();
    }

/*  92 */     this.m_count = other.getCount();
  }

  public Service setCount(long count) {
/*  96 */     this.m_count = count;
/*  97 */     return this;
  }

  public Service setDomain(String domain) {
/* 101 */     this.m_domain = domain;
/* 102 */     return this;
  }

  public Service setKey(String key) {
/* 106 */     this.m_key = key;
/* 107 */     return this;
  }

  public Service setLogview(String logview) {
/* 111 */     this.m_logview = logview;
/* 112 */     return this;
  }

  public Service setName(String name) {
/* 116 */     this.m_name = name;
/* 117 */     return this;
  }
}


/* Location:              /Users/hanfei/Documents/apache-tomcat-9.0.24/webapps/cat/WEB-INF/classes/!/com/dianping/cat/home/heavy/entity/Service.class
 * Java compiler version: 7 (51.0)
 * JD-Core Version:       1.0.7
 */